package cn.article.entity;


import cn.easier.club.base.annotation.Convert;

public class CustomerTypeConverter implements Convert<String, CustomerType>{
	@Override
	public CustomerType convert(String source) {
		if(CustomerType.BIG_CUSTOMER.getDescription().equals(source)){
			return CustomerType.BIG_CUSTOMER;
		} else if(CustomerType.BUSINESS_HALL.getDescription().equals(source)){
			return CustomerType.BUSINESS_HALL;
		}else{
			return CustomerType.GENERAL_CUSTOMER;
		}
	}

}
